package com.songjiakang.dao;

import java.util.List;








import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.songjiakang.entity.Home;

public interface HomeDao {
	
	List<Home> list(Home home);
	@Delete("DELETE from home where id=#{id}")
	Boolean del(@Param("id")Integer id);
	@Update("UPDATE  home set `status`=1,rental_time=NULL  WHERE id=#{id}")
	void tui(@Param("id")Integer id);
	@Update("UPDATE  home set `status`=0,rental_time=now()  WHERE id=#{id}")
	void chu(Integer id);
	
}
